package com.zjgk.hotel.controller;

import com.zjgk.hotel.service.RoomService;
import com.zjgk.hotel.vo.RoomContent;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.websocket.server.PathParam;


@RestController
@RequestMapping("/room")
public class RootController {
    @Resource
    private RoomService roomService;

    @GetMapping("/content")
    public RoomContent RoomContent(@PathParam("id")Integer id){
        return roomService.RoomDetails(id);
    }
}
